package nafos.server.response

import org.springframework.web.context.request.RequestContextHolder
import org.springframework.web.context.request.ServletRequestAttributes
import javax.servlet.http.HttpServletResponse



typealias NsResponse = HttpServletResponse

inline fun currentResponse():NsResponse?{
    val servletRequestAttributes = RequestContextHolder.getRequestAttributes() as? ServletRequestAttributes
    return servletRequestAttributes?.response
}